﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_QC_IQC_ORDER_ITEM_DETAIL
// * CreateDate    : 2012/4/15 1:15:56
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/15 1:15:56
// * LastChanger   : 2012/4/15 1:15:56
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class QcIqcOrderItemDetailTable : TableInfo
    {
        public const string C_TableName = "QC_IQC_ORDER_ITEM_DETAIL";

        public const string C_ORDER_ITEM_DETAIL_ID = "ORDER_ITEM_DETAIL_ID";
        public const string C_ORDER_ID = "ORDER_ID";
        public const string C_ORDER_ITEM_ID = "ORDER_ITEM_ID";
        public const string C_RESULT = "RESULT";
        public const string C_QTY = "QTY";
        public const string C_NG_CODE = "NG_CODE";
        public const string C_ADVICE = "ADVICE";
        public const string C_DESCRIPTION = "DESCRIPTION";

        public QcIqcOrderItemDetailTable()
        {
            _tableName = "QC_IQC_ORDER_ITEM_DETAIL";
        }

        protected static QcIqcOrderItemDetailTable _current;
        public static QcIqcOrderItemDetailTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new QcIqcOrderItemDetailTable();

            _current.Add(C_ORDER_ITEM_DETAIL_ID, new ColumnInfo(C_ORDER_ITEM_DETAIL_ID, "OrderItemDetailId", true, typeof(string)));
            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID, "OrderId", false, typeof(string)));
            _current.Add(C_ORDER_ITEM_ID, new ColumnInfo(C_ORDER_ITEM_ID, "OrderItemId", false, typeof(string)));
            _current.Add(C_RESULT, new ColumnInfo(C_RESULT, "Result", false, typeof(int)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_NG_CODE, new ColumnInfo(C_NG_CODE, "NgCode", false, typeof(string)));
            _current.Add(C_ADVICE, new ColumnInfo(C_ADVICE, "Advice", false, typeof(string)));
            _current.Add(C_DESCRIPTION, new ColumnInfo(C_DESCRIPTION, "Description", false, typeof(string)));

        }

        public ColumnInfo ORDER_ITEM_DETAIL_ID
        {
            get { return this[C_ORDER_ITEM_DETAIL_ID]; }
        }

        public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }

        public ColumnInfo ORDER_ITEM_ID
        {
            get { return this[C_ORDER_ITEM_ID]; }
        }

        public ColumnInfo RESULT
        {
            get { return this[C_RESULT]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo NG_CODE
        {
            get { return this[C_NG_CODE]; }
        }

        public ColumnInfo ADVICE
        {
            get { return this[C_ADVICE]; }
        }

        public ColumnInfo DESCRIPTION
        {
            get { return this[C_DESCRIPTION]; }
        }



    }
}

